#ifndef _K_INTERLOCK_
#define _K_INTERLOCK_

namespace krt
{
	KRUNTIME_API long LockInc(volatile long* dst);
	KRUNTIME_API long LockDec(volatile long* dst);
	KRUNTIME_API long LockExchange(volatile long* dst, long NewValue);
	KRUNTIME_API long LockCmpExchange(volatile long* dst, long NewValue, long comperand);
}

#endif	//_K_INTERLOCK_